﻿using System.Windows;

namespace VMWareLabWorkflowsDataContracts.VMWareLabDetailsDialogControls
{
    using VMWareLabWorkflowsDataContracts.VMWareLabDetailsDialogControls.ViewModel;

    /// <summary>
    /// Interaction logic for SelectTestSuitesControl.xaml
    /// </summary>
    public partial class SelectTestSuitesWindow : Window
    {
        private readonly SelectTestSuitesViewModel selectTestSuitesViewModel;

        public SelectTestSuitesWindow(SelectTestSuitesViewModel vm)
        {
            this.InitializeComponent();
            this.selectTestSuitesViewModel = vm;
            this.DataContext = this.selectTestSuitesViewModel;
        }

        /// <summary>
        /// Handles the Click event of the btnOk control.
        /// </summary>
        /// <param name="sender">The source of the event.</param>
        /// <param name="e">The <see cref="System.Windows.RoutedEventArgs"/> instance containing the event data.</param>
        private void BtnOkClick(object sender, RoutedEventArgs e)
        {
            this.DialogResult = true;
        }
    }
}
